
const request = require('../../utils/request');

//获取景點分頁列表
export const GetPlaceListForPage = (data) => {
  return request.post(`travel_plan/getPlaceListForPage`,data);
};

//获取景點分类列表
export const getPlaceCategoryListAll = (data) => {
  return request.post(`travel_plan/getPlaceCategoryListAll`,data);
};

//获取景點详情
export const getPlaceInfoById = (data) => {
  return request.post(`travel_plan/getPlaceInfoById`,data);
};

//获取用户收藏夹列表
export const getUserFavoriteListAllForUser = (data) => {
  return request.post(`travel_plan/getUserFavoriteListAllForUser`,data);
};

//删除用户收藏夹列表
export const postUserFavoriteDeleteForUser = (data) => {
  return request.post(`travel_plan/postUserFavoriteDeleteForUser`,data);
};

//收藏地点
export const postUserFavoritePlaceEditForUser = (data) => {
  return request.post(`travel_plan/postUserFavoritePlaceEditForUser`,data);
};

//收藏行程
export const postUserFavoriteItineraryAddForUser = (data) => {
  return request.post(`travel_plan/postUserFavoriteItineraryAddForUser`,data);
};

//取消收藏行程
export const postUserFavoriteItineraryDeleteForUser = (data) => {
  return request.post(`travel_plan/postUserFavoriteItineraryDeleteForUser`,data);
};

//取消收藏地点
export const postUserFavoritePlaceDeleteForUser = (data) => {
  return request.post(`travel_plan/postUserFavoritePlaceDeleteForUser`,data);
};

//添加修改收藏夹列表
export const postUserFavoriteEditForUser = (data) => {
  return request.post(`travel_plan/postUserFavoriteEditForUser`,data);
};

//获取用户收藏景点列表
export const getUserFavoritePlaceListForPageForUser = (data) => {
  return request.post(`travel_plan/getUserFavoritePlaceListForPageForUser`,data);
};

//获取用户收藏行程列表
export const getUserFavoriteItineraryListForPageForUser = (data) => {
  return request.post(`travel_plan/getUserFavoriteItineraryListForPageForUser`,data);
};

//获取我的行程分頁列表
export const getItineraryListForPageForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryListForPageForUser`,data);
};

//获取行程分頁列表
export const getItineraryListForPage = (data) => {
  return request.post(`travel_plan/getItineraryListForPage`,data);
};

//获取推荐行程详情
export const getItineraryInfoById = (data) => {
  return request.post(`travel_plan/getItineraryInfoByIdToTree`,data);
};

//创建行程
export const postItineraryEditForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryAddToTreeForUser`,data);
};

//添加景點
export const postPlaceAddForUser = (data) => {
  return request.post(`travel_plan/postPlaceAddForUser`,data);
};

//添加到我的行程
export const postUserItineraryAddByIdForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryAddByIdForUser`,data);
};


//編輯行程
export const postUserItineraryModifyToTreeForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryModifyToTreeForUser`,data);
};

//创建行程获取旅游偏好列表
export const getItineraryCatalogListAllForComboBox = (data) => {
  return request.post(`travel_plan/getItineraryCatalogListAllForComboBox`,data);
};

//获取我的行程详情
export const getItineraryInfoByIdForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryInfoByIdToTreeForUser`,data);
};

//获取我的行程同伴列表
export const getItineraryCompanionList = (data) => {
  return request.post(`travel_plan/getUserItineraryCompanionListAllByItineraryIdForUser`,data);
};

//上传
export const UploadUploadFile = (data) => {
  return request.post(`Upload/uploadFile`,data);
};

//添加我的行程同伴列表
export const ItineraryCompanionAddForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryCompanionAddForUser`,data);
};

//删除我的行程同伴列表
export const ItineraryCompanionDeleteForUser = (data) => {
  return request.post(`travel_plan/postItineraryCompanionDeleteForUser`,data);
};

//用戶行程行李清單分类列表
export const getItineraryPackingListCategoryListAllForComboBox = (data) => {
  return request.post(`travel_plan/getItineraryPackingListCategoryListAllForComboBox`,data);
};

//用戶行程行李清單列表
export const getItineraryPackingListListAllToTreeForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryPackingListListAllToTreeForUser`,data);
};

//添加用戶行李清單列表
export const ItineraryPackingListAddForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryPackingListAddForUser`,data);
};

//編輯用戶行李清單列表
export const postUserItineraryPackingListModifyForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryPackingListModifyForUser`,data);
};

//删除用戶行李清單列表
export const ItineraryPackingListDeleteForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryPackingListDeleteForUser`,data);
};

//查詢航班信息
export const travel_planGetFlightListAll = (data) => {
  return request.post(`travel_plan/getFlightListAll`,data);
};

//获取用戶支付記錄列表
export const getUserItineraryPaymentRecordListAllForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryPaymentRecordListAllForUser`,data);
};

//添加、修改用戶支付記錄
export const postUserItineraryPaymentRecordEditForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryPaymentRecordEditForUser`,data);
};

//获取用戶行程記賬合計
export const getUserItineraryPayerListAllForTotalForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryPayerListAllForTotalForUser`,data);
};

//获取用戶行程記賬列表
export const getUserItineraryBookkeepingListAllToTreeForUser = (data) => {
  return request.post(`travel_plan/getUserItineraryBookkeepingListAllToTreeForUser`,data);
};

//添加用戶行程記賬
export const postUserItineraryBookkeepingAddForUser = (data) => {
  return request.post(`travel_plan/postUserItineraryBookkeepingEditForUser`,data);
};

//刪除用戶行程記賬
export const postUserItineraryBookkeepingDeleteForUser= (data) => {
  return request.post(`travel_plan/postUserItineraryBookkeepingDeleteForUser`,data);
};

//获取用戶行程支付人列表
export const getUserItineraryPayerListAllForUser= (data) => {
  return request.post(`travel_plan/getUserItineraryPayerListAllForUser`,data);
};

//添加用戶行程支付人
export const postUserItineraryPayerAddForUser= (data) => {
  return request.post(`travel_plan/postUserItineraryPayerAddForUser`,data);
};

//刪除用戶行程支付人
export const postUserItineraryPayerDeleteForUser= (data) => {
  return request.post(`travel_plan/postUserItineraryPayerDeleteForUser`,data);
};


